using System;
using Sirenix.OdinInspector;
using Sirenix.Serialization;

namespace BTEditor
{
    [BTDecorator]
    public class Repeater : Decorator
    {
        public override Type GetNodeType()
        {
            return typeof(NPBehave.Repeater);
        }

        public override ErrorType GetIsVaild()
        {
            return BelongNode.IsHaveChild ? ErrorType.None : ErrorType.Error;
        }
        
        
        [HideLabel] [Title("循环次数")]   [OdinSerialize]
        [InfoBox("-1 : 无限循环 ")]
        [BTValue(DealType.OnlyUse)]
        public int loopCount = -1;
    }
}